#!/usr/bin/env python
# -*- coding:utf-8 -*-
# 爬取图片

import requests
import io

if __name__ == "__main__":
    url = "https://pic.qiushibaike.com/system/pictures/12368/123686944/medium/5M9V152R4V8QDH5D.jpg"
    # content返回的是二进制的图片数据
    img_data = requests.get(url=url).content

    with io.open("./qiutu1.jpg",'wb') as fp:
        fp.write(img_data)